package com.neusoft.neu.mapper;

import com.neusoft.neu24.Result.CommonResult;
import com.neusoft.neu24.dto.GridorDTO;
import com.neusoft.neu24.dto.MemberDTO;
import com.neusoft.neu24.dto.UserLoginDTO;
import com.neusoft.neu24.entity.Grid;
import com.neusoft.neu24.entity.Gridor;
import com.neusoft.neu24.entity.Member;
import io.swagger.models.auth.In;

import java.util.List;

public interface MemberMapper {

    Member selectMemberByPhoneLogin(UserLoginDTO userLoginDTO);

    List<MemberDTO> listAll();

    Integer addMember(Member member);

    CommonResult<Integer> switchMember(Member member);

    List<GridorDTO> getGridors();

    Grid getPid(Integer id);

    List<Integer> getIdsById(Integer id);

    Integer editGridor(Gridor gridor);

    Integer insertGridors(List<GridorDTO> list);

    String getAddress(Integer id);

    Integer addGridor(Member member);
}
